﻿using Abp.BackgroundJobs;
using FwProject.BackGround.AppShopPay;
using FwProject.Comm;
using FwProject.ManagerNotification;
using System;
using System.Collections.Generic;
using System.Text;

namespace FwProject.OrderDecorator
{
    /// <summary>
    /// 订单装饰器类
    /// </summary>
    /// <typeparam name="T"></typeparam>
   public  class OrderActionRectangle<T> : OrderBaseAction<T> where T: PaySuccessData
    {
        protected OrderBaseAction<T> decoratedShape;
        private readonly IBackgroundJobManager _backgroundJobManager;
        private readonly PublishNotifications _publishNotifications;

     
         public OrderActionRectangle(OrderBaseAction<T> decoratedShape)
          {
                this.decoratedShape = decoratedShape;
          }
        public OrderActionRectangle(IBackgroundJobManager backgroundJobManager, PublishNotifications publishNotifications, OrderBaseAction<T> decoratedShape):this(decoratedShape)
        {
            _backgroundJobManager = backgroundJobManager;
            _publishNotifications = publishNotifications;
        }
        public override  void Run(T t)
        {
              decoratedShape.Run(t);
        }
     }
}
